package com.catering.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.catering.pojo.DOrderinformation;
import com.catering.service.DOrderinformationService;
import com.catering.mapper.DOrderinformationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 徐
* @description 针对表【d_orderinformation】的数据库操作Service实现
* @createDate 2025-04-10 13:49:59
*/
@Service
public class DOrderinformationServiceImpl extends ServiceImpl<DOrderinformationMapper, DOrderinformation>
    implements DOrderinformationService{
    @Autowired
    private DOrderinformationMapper orderinformationMapper;

    @Override
    public List<DOrderinformation> selectByOrder(Integer uid) {
        List<DOrderinformation> dOrderinformations = orderinformationMapper.selectByOrder(uid);
        return dOrderinformations;
    }

    @Override
    public void insertDOrder(DOrderinformation orderinformation) {
        orderinformationMapper.insertDOrder(orderinformation);
    }

    @Override
    public void updateStatus(Integer oid) {
        orderinformationMapper.updateStatus(oid);
    }
}




